package com.uplift.mobile.realty.service;

import com.uplift.common.base.ServiceReslut;
import com.uplift.mobile.realty.model.RealtyEarnings;
import org.springframework.http.ResponseEntity;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface IRealtyEarningsService {
	public List<Map<String, Object>> queryRealtyEarnings(RealtyEarnings realtyEarnings);

	@Transactional
	public ServiceReslut addRealtyEarnings(RealtyEarnings realtyEarnings);

	@Transactional
	public ServiceReslut updateRealtyEarnings(RealtyEarnings realtyEarnings);

	@Transactional
	public ServiceReslut deleteRealtyEarnings(RealtyEarnings realtyEarnings);

	/**
	 * 统计每月收益情况
	 * @param realtyEarnings
	 * @return
	 */
	public Map<String, Object> countEveMonthEarnings(RealtyEarnings realtyEarnings);

	/**
	 * 统计客户总资产
	 * @param realtyEarnings
	 * @return
	 */
	public Map<String, BigDecimal> countCustomerAsset(RealtyEarnings realtyEarnings) throws Exception;

	String exportDetail(RealtyEarnings realtyEarnings) throws Exception;
}
